package com.kehutong.house.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import com.kehutong.house.enums.ResidentType;

@Table(value="t_resident", multi=true, idType=IDType.TIMESTAMP)
public class Resident extends Entity {

    private static final long serialVersionUID = -1;

    protected Resident(String id) {
        super(id);
    }
    
    @Column(comment = "房屋ID")
    private String houseId;

    @Column(comment = "用户ID")
    private String userno;

    @Column(comment = "姓名")
    private String name;

	@Column(comment = "手机")
    private String mobile;

    @Column(comment = "住户类型")
    private ResidentType type;

    @Column(comment = "逻辑删除")
    private boolean deleted;

	@Column(comment = "真实姓名")
	private String realname;

	public String getHouseId() {
		return houseId;
	}

	public void setHouseId(String houseId) {
		this.houseId = houseId;
	}

	public String getUserno() {
		return userno;
	}

	public void setUserno(String userno) {
		this.userno = userno;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public ResidentType getType() {
		return type;
	}

	public void setType(ResidentType type) {
		this.type = type;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}
}
